package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * 野生动物救助处理
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_rescue_handle")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RescueHandleModel {
    @TableId(type = IdType.AUTO)
    private Integer id; //报灾处理表ID
    private Integer status;//处理状态
    private String name;//名称
    //    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private String handleTime;//处理时间（默认当前时间，可选）
    private String handleText;//处理内容
    private String fileId;//文件id

    private Integer rescueId;//野生动物救助这条记录ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;


    @TableField(exist = false)
    private List<String> urlList;
    @TableField(exist = false)
    private List<String> videoList;

    @TableField(exist = false)
    private String[] video;//视频
    @TableField(exist = false)
    private String[] pic;//图片
}
